<!DOCTYPE html>
<html ng-app="MainApp">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>SpringBootManagerSystem</title>
	<script src="js/common/util.js"></script>
	<link type="text/css" href="css/login.css" rel="stylesheet" />
	<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon" />


	<!--[if IE 9]>
	<link href="css/ie9_fixed.css" rel="stylesheet" />
	<![endif]-->
	<script type="text/javascript">
		var BrowserDetect = {
			init: function () {
				this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
				this.version = this.searchVersion(navigator.userAgent)
						|| this.searchVersion(navigator.appVersion)
						|| "an unknown version";
				this.OS = this.searchString(this.dataOS) || "an unknown OS";
			},
			searchString: function (data) {
				for (var i=0;i<data.length;i++)	{
					var dataString = data[i].string;
					var dataProp = data[i].prop;
					this.versionSearchString = data[i].versionSearch || data[i].identity;
					if (dataString) {
						if (dataString.indexOf(data[i].subString) != -1)
							return data[i].identity;
					}
					else if (dataProp)
						return data[i].identity;
				}
			},
			searchVersion: function (dataString) {
				var index = dataString.indexOf(this.versionSearchString);
				if (index == -1) return;
				return parseFloat(dataString.substring(index+this.versionSearchString.length+1));
			},
			dataBrowser: [
				{
					string: navigator.userAgent,
					subString: "Chrome",
					identity: "Chrome"
				},
				{	 string: navigator.userAgent,
					subString: "OmniWeb",
					versionSearch: "OmniWeb/",
					identity: "OmniWeb"
				},
				{
					string: navigator.vendor,
					subString: "Apple",
					identity: "Safari",
					versionSearch: "Version"
				},
				{
					prop: window.opera,
					identity: "Opera"
				},
				{
					string: navigator.vendor,
					subString: "iCab",
					identity: "iCab"
				},
				{
					string: navigator.vendor,
					subString: "KDE",
					identity: "Konqueror"
				},
				{
					string: navigator.userAgent,
					subString: "Firefox",
					identity: "Firefox"
				},
				{
					string: navigator.vendor,
					subString: "Camino",
					identity: "Camino"
				},
				{		// for newer Netscapes (6+)
					string: navigator.userAgent,
					subString: "Netscape",
					identity: "Netscape"
				},
				{
					string: navigator.userAgent,
					subString: "MSIE",
					identity: "Internet Explorer",
					versionSearch: "MSIE"
				},
				{
					string: navigator.userAgent,
					subString: "Gecko",
					identity: "Mozilla",
					versionSearch: "rv"
				},
				{		 // for older Netscapes (4-)
					string: navigator.userAgent,
					subString: "Mozilla",
					identity: "Netscape",
					versionSearch: "Mozilla"
				}
			],
			dataOS : [
				{
					string: navigator.platform,
					subString: "Win",
					identity: "Windows"
				},
				{
					string: navigator.platform,
					subString: "Mac",
					identity: "Mac"
				},
				{
					string: navigator.userAgent,
					subString: "iPhone",
					identity: "iPhone/iPod"
				},
				{
					string: navigator.platform,
					subString: "Linux",
					identity: "Linux"
				}
			]

		};
		BrowserDetect.init();
	</script>

</head>
<body>
<div id="wrap" >
	<div   id="testBrowserContent"   style="display:none">
		<div  id="testBrowser-name">
			尊敬的用户：</br> </br>
			系统检测到您的浏览器版本过低</br>
			为了保证您的正常使用</br>
			请点击下面的链接</br> </br>
			<div  class="download_chrome" onclick="downloadChrome();" ><u>下载浏览器！</u> </div>
		</div>
	</div>

	<div class="small-logo">
		<!-- <img src="images/login-logo.png"   style="float: left;margin-right: 20px;" class="login-logo" > -->
		<h3 style="text-align: center;"> SpringBoot Manager System</h3>
	</div>

	<div id="content"  >
		<!--<div id="system-name">设备管理云平台</div>
		<div id="copyright">北京冠群信息</div>-->
		<span id="name-input">
                <input name="loginName" type="text" placeholder="UserName" />
            </span>
		<span id="pwd-input">
                <input name="loginPassword" type="password" placeholder="Password"/>
            </span>

		<button type="button" id="login-btn" onclick="validateLogin()">Login</button>
		<!--<div id="company-copyright">
			北京冠群信息<span id="year"></span>
		</div>-->
	</div>
	<div id="error">
	</div>
	<script src="lib/jquery/dist/jquery.min.js"></script>
	<script type="text/javascript" src="js/common/login.js"></script>
	<script>


		$(function(){
			var year = new Date().getFullYear();
			$("#year").text(year);
		})


		if( BrowserDetect.browser == "Internet Explorer" &&  BrowserDetect.version < 9 ){
			document.getElementById("testBrowserContent").style.display = "block";
			document.getElementById("content").style.display = "none";
		} else {
			document.getElementById("testBrowserContent").style.display = "none";
			document.getElementById("content").style.display = "block";
		}

		function downloadChrome(){
			window.location.href=encodeURI("reportExcel/23.0.1271.64_chrome_installer.exe" );
		}

	</script>
    <canvas id="draw-ball"></canvas>
</div>
</body>
</html>
